<?php
/**
 * (actions)
 */
namespace App\Admin\Actions\ProductStockup;

use Encore\Admin\Grid\Tools\AbstractTool;
class ImportSku extends AbstractTool
{
    /**
     * Render Export button.
     *
     * @return string
     */
    public function render()
    {
        $url = '/xqc/product-stockup/stockup-upload';

        return <<<EOT

<div class="btn-group">
    <a href="{$url}?type=new-sku" class="btn btn-sm btn-default">导入新品</a>
</div>
<div class="btn-group">
    <a href="{$url}?type=ratio" class="btn btn-sm btn-primary">导入比例</a>
</div>
<div class="btn-group">
    <a href="{$url}?type=estimate" class="btn btn-sm btn-warning">导入预估</a>
</div>

<!--
<div class="btn-group">
    <a href="{$url}?type=apply" class="btn btn-sm btn-info">导入需求</a>
</div>
-->
EOT;
    }
}
